package com.lap.auth.application.role.command;

import org.hibernate.validator.constraints.Length;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@Schema(description = "创建角色命令")
public class CreateRoleCmd {

  @NotEmpty(message = "{role.code.required}")
  @Length(max = 32, message = "{role.code.max.length}")
  @Schema(description = "角色编码")
  private String code;

  @NotEmpty(message = "{role.name.required}")
  @Length(max = 32, message = "role.name.max.length")
  @Schema(description = "角色名字")
  private String name;

  @Length(max = 128, message = "role.remark.max.length")
  @Schema(description = "角色备注")
  private String remark;
}
